package cn.zn.modules.pz.enums;

public enum ProcessStateEnum {
	/** 填写申请单 */
	state_0(0, "创建申请单"),
	/** 填写申请单 */
	state_1(1, "填写申请单"),
	/** 审核中 */
	state_2(2, "审核中"),
	/** 结束 */
	state_3(3, "结束"),
	/** 作废 */
	state_4(4, "作废"),
	/** 驳回 */
	state_5(5, "驳回"),;
	private Integer code;
	private String name;

	private ProcessStateEnum(Integer code, String name) {
		this.code = code;
		this.name = name;
	}

	public static ProcessStateEnum findByCode(int code) {
		for (ProcessStateEnum e : values()) {
			if (e.getCode() == code) {
				return e;
			}
		}
		return null;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
